package com.erp.erp_dao.Contract_Info;

import com.erp.erp_entitys.Contract_Info.ContractProductInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ContractProductInfoDao {

    int deleteById(Long contractproductid);

    int deleteByContractID(Long contractid);

    int insert(ContractProductInfo record);

    int insertSelective(ContractProductInfo record);

    ContractProductInfo selectById(Long contractproductid);

    int update(ContractProductInfo record);

    int updateByPrimaryKey(ContractProductInfo record);

    List<ContractProductInfo> queryAllByLimit(@Param("offset") int offset, @Param("limit") int limit);

    List<ContractProductInfo> queryAllByContractID(Long contractid);
}